/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tesam.gedeon.dao;

import com.tesam.gedeon.entity.Profile;
import java.util.List;

/**
 *
 * @author joelpacheco
 */
public interface ProfileDao {

    public int save(Profile profile);

    public int delete(int id);

    public int update(Profile profile);

    public Profile getById(int id);

    public List<Profile> getAll();

    public List<Profile> getAllByLimit(int startLimit, int endLimit, String dataToSort, String directionOfOrder);

    public List<Profile> searchByName(Profile profile, int satartLimit, int endLimit);

    public int getCountSearchByName(Profile profile);

    public int getCountTotal();
    
    public List<Profile>getAllByRolId(int rolId);
}
